import { ViewTool } from '@/utils';

/**
 * IndexView 部件模型
 *
 * @export
 * @class IndexViewModel
 */
export default class IndexViewModel {

    /**
     * 菜单项集合
     *
     * @private
     * @type {any[]}
     * @memberof IndexViewModel
     */
    private items: any[] = [
                {
        	id: '37fd952d8c32526edff0882a0a9d78ca',
        	name: 'menuitem61',
        	text: '工作台',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '工作台',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: true,
        	iconcls: 'fa fa-desktop',
        	icon: '',
        	textcls: '',
        	appfunctag: 'Auto37',
        	appfunctype: 'APPVIEW',
        	viewname: 'app-portal-view',
        	authtag:'DynaWeb-IndexView-menuitem61',
        	localetag: 'app.menus.IndexView.menuitem61',
        }
        ,
                {
        	id: '3ec0da79dd7bcea9bc5d05ff54c04763',
        	name: 'menuitem3',
        	text: '设备',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '设备',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-align-right',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem3',
        	localetag: 'app.menus.IndexView.menuitem3',
        	items: [
                		        {
                	id: '8fb1698740519ae5a976b02060a6623f',
                	name: 'menuitem1',
                	text: '设备类型',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '设备类型',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto21',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqtype-tree-exp-view2',
                	authtag:'DynaWeb-IndexView-menuitem1',
                	localetag: 'app.menus.IndexView.menuitem1',
                }
                ,
                		        {
                	id: '4bd608bc63e9a0af6d928f30b263e222',
                	name: 'menuitem8',
                	text: '设备档案',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '设备档案',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto1',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqtype-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem8',
                	localetag: 'app.menus.IndexView.menuitem8',
                }
                ,
                		        {
                	id: '29205094c86e6dc025eb6d64573f8364',
                	name: 'menuitem5',
                	text: '位置',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '位置',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto12',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqlocation-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem5',
                	localetag: 'app.menus.IndexView.menuitem5',
                }
                ,
                		        {
                	id: '121fc39c740b0fbc234d814fd64519fa',
                	name: 'menuitem6',
                	text: '文档',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '文档',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto20',
                	appfunctype: 'APPVIEW',
                	viewname: 'emdrwgtree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem6',
                	localetag: 'app.menus.IndexView.menuitem6',
                }
                ,
                		        {
                	id: '7389049eb8f54e5afa10a5e43ad78833',
                	name: 'menuitem7',
                	text: '备件包',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '备件包',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto10',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqspare-grid-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem7',
                	localetag: 'app.menus.IndexView.menuitem7',
                }
                ,
        	],
        }
        ,
                {
        	id: '5ae70009515d3cd9254ccd9ea82e3603',
        	name: 'menuitem72',
        	text: '运行',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '运行',
        	expanded: false,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-bug',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem72',
        	localetag: 'app.menus.IndexView.menuitem72',
        	items: [
                		        {
                	id: '24f6e5b49926ed807eb4aa7998c63271',
                	name: 'menuitem73',
                	text: '运行日志',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '运行日志',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto65',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqwlgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem73',
                	localetag: 'app.menus.IndexView.menuitem73',
                }
                ,
                		        {
                	id: 'f684fdd0fa576fe0d80532cd7c44fb45',
                	name: 'menuitem74',
                	text: '运行监控',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '运行监控',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto60',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmonitor-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem74',
                	localetag: 'app.menus.IndexView.menuitem74',
                }
                ,
                		        {
                	id: 'b87d33ea50b9df7844a2bbdfe0f2ee1a',
                	name: 'menuitem77',
                	text: '仪表',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '仪表',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto62',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmpgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem77',
                	localetag: 'app.menus.IndexView.menuitem77',
                }
                ,
                		        {
                	id: '9e6a5debcd59f2af2ab2f09db4ca71a8',
                	name: 'menuitem78',
                	text: '仪表读数',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '仪表读数',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto59',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmpmtrgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem78',
                	localetag: 'app.menus.IndexView.menuitem78',
                }
                ,
                		        {
                	id: 'ad87f1ecd6635217713beeb5f7c44826',
                	name: 'menuitem75',
                	text: '关键点',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '关键点',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto63',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkpgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem75',
                	localetag: 'app.menus.IndexView.menuitem75',
                }
                ,
                		        {
                	id: '20644bf8d9eb440ed7ba6118cc84452a',
                	name: 'menuitem76',
                	text: '关键点记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '关键点记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto67',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkprcdgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem76',
                	localetag: 'app.menus.IndexView.menuitem76',
                }
                ,
        	],
        }
        ,
                {
        	id: 'cf5cfa363a254851813316eb37531201',
        	name: 'menuitem16',
        	text: '计划',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '计划',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-pencil-square-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem16',
        	localetag: 'app.menus.IndexView.menuitem16',
        	items: [
                		        {
                	id: 'd3dbc12952f14dd7c85dd524bd2d2cdb',
                	name: 'menuitem17',
                	text: '计划',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '计划',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto15',
                	appfunctype: 'APPVIEW',
                	viewname: 'emplan-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem17',
                	localetag: 'app.menus.IndexView.menuitem17',
                }
                ,
                		        {
                	id: '1ef49b322792bd13fe7fc3a70ff7ea41',
                	name: 'menuitem18',
                	text: '计划模板',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '计划模板',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto6',
                	appfunctype: 'APPVIEW',
                	viewname: 'emplan-templ-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem18',
                	localetag: 'app.menus.IndexView.menuitem18',
                }
                ,
        	],
        }
        ,
                {
        	id: '3e11e371a4af5f7d4d70a847a536ebc2',
        	name: 'menuitem33',
        	text: '能耗',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '能耗',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-area-chart',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem33',
        	localetag: 'app.menus.IndexView.menuitem33',
        	items: [
                		        {
                	id: 'd0fca3fa09602c25f3a394613009df16',
                	name: 'menuitem50',
                	text: '能源',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能源',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto35',
                	appfunctype: 'APPVIEW',
                	viewname: 'emengrid-view',
                	authtag:'DynaWeb-IndexView-menuitem50',
                	localetag: 'app.menus.IndexView.menuitem50',
                }
                ,
                		        {
                	id: '02e5fca23f7cf03e21335aa549a21467',
                	name: 'menuitem55',
                	text: '能耗',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能耗',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto32',
                	appfunctype: 'APPVIEW',
                	viewname: 'emenconsum-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem55',
                	localetag: 'app.menus.IndexView.menuitem55',
                }
                ,
        	],
        }
        ,
                {
        	id: '78109e416b8c7ded362ba72a3992577e',
        	name: 'menuitem9',
        	text: '工单',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '工单',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-align-justify',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem9',
        	localetag: 'app.menus.IndexView.menuitem9',
        	items: [
                		        {
                	id: '6bbbf88535359bc9d2cd155321636611',
                	name: 'menuitem69',
                	text: '工单日历',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '工单日历',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto58',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwocalendar-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem69',
                	localetag: 'app.menus.IndexView.menuitem69',
                }
                ,
                		        {
                	id: '9540f06224ef6a8e957e56d7348264fd',
                	name: 'menuitem11',
                	text: '内部工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '内部工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto9',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-innertab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem11',
                	localetag: 'app.menus.IndexView.menuitem11',
                }
                ,
                		        {
                	id: '33b2f5087ea7b7e4ddcf022d3da8e97c',
                	name: 'menuitem12',
                	text: '外委工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '外委工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto17',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-osctab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem12',
                	localetag: 'app.menus.IndexView.menuitem12',
                }
                ,
                		        {
                	id: '89b15b2a0643a5098ea611604117945d',
                	name: 'menuitem13',
                	text: '能耗工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '能耗工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto5',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-entab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem13',
                	localetag: 'app.menus.IndexView.menuitem13',
                }
                ,
                		        {
                	id: 'c03a06db65083236452350d71def886c',
                	name: 'menuitem14',
                	text: '点检工单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '点检工单',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto3',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwo-dptab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem14',
                	localetag: 'app.menus.IndexView.menuitem14',
                }
                ,
                		        {
                	id: 'eed829a2251f771aa38499f9d98a9642',
                	name: 'menuitem15',
                	text: '外委申请',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '外委申请',
                	expanded: true,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto16',
                	appfunctype: 'APPVIEW',
                	viewname: 'emapply-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem15',
                	localetag: 'app.menus.IndexView.menuitem15',
                }
                ,
        	],
        }
        ,
                {
        	id: 'e60fb4de4b3a0f208d46bbbfc1d49270',
        	name: 'menuitem32',
        	text: '活动',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '活动',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-university',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem32',
        	localetag: 'app.menus.IndexView.menuitem32',
        	items: [
                		        {
                	id: '55f27bd30001bdd4ca191ca5a6b44c82',
                	name: 'menuitem70',
                	text: '活动日历',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '活动日历',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto64',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqahcalendar-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem70',
                	localetag: 'app.menus.IndexView.menuitem70',
                }
                ,
                		        {
                	id: '6a7904d3a443791b2d1d57b37bdee9e4',
                	name: 'menuitem56',
                	text: '更换安装',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '更换安装',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto27',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqsetup-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem56',
                	localetag: 'app.menus.IndexView.menuitem56',
                }
                ,
                		        {
                	id: 'fd88f292ede0e93f6314f07466e9e5a5',
                	name: 'menuitem57',
                	text: '事故记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '事故记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto33',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqdebug-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem57',
                	localetag: 'app.menus.IndexView.menuitem57',
                }
                ,
                		        {
                	id: '49480bfa806839949feee646828774f5',
                	name: 'menuitem58',
                	text: '维修记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '维修记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto38',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqcheck-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem58',
                	localetag: 'app.menus.IndexView.menuitem58',
                }
                ,
                		        {
                	id: '409cb76a7c72d39dd8353b5ffca64cd0',
                	name: 'menuitem59',
                	text: '抢修记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '抢修记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto31',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqmaintance-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem59',
                	localetag: 'app.menus.IndexView.menuitem59',
                }
                ,
                		        {
                	id: '708a9133510bfd5f208024a2a38c9778',
                	name: 'menuitem60',
                	text: '保养记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '保养记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto28',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqkeep-grid-view',
                	authtag:'DynaWeb-IndexView-menuitem60',
                	localetag: 'app.menus.IndexView.menuitem60',
                }
                ,
        	],
        }
        ,
                {
        	id: '9cdce61b823e4a48dc4d6daf651c09b3',
        	name: 'menuitem31',
        	text: '故障',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '故障',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-exclamation-triangle',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem31',
        	localetag: 'app.menus.IndexView.menuitem31',
        	items: [
                		        {
                	id: '45f40dfc253e3d8b8a972ccf39beb293',
                	name: 'menuitem79',
                	text: '故障知识库',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '故障知识库',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto66',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodegrid-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem79',
                	localetag: 'app.menus.IndexView.menuitem79',
                }
                ,
                		        {
                	id: '96c9770e0586e0bcfc0abbf88b2f0dd4',
                	name: 'menuitem48',
                	text: '现象',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '现象',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto50',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodegrid-view',
                	authtag:'DynaWeb-IndexView-menuitem48',
                	localetag: 'app.menus.IndexView.menuitem48',
                }
                ,
                		        {
                	id: 'e04feb96801b8a00ef7e1e20ce379805',
                	name: 'menuitem47',
                	text: '现象分类',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '现象分类',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto26',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfodetypegrid-view',
                	authtag:'DynaWeb-IndexView-menuitem47',
                	localetag: 'app.menus.IndexView.menuitem47',
                }
                ,
                		        {
                	id: '7024b3bf0327d872c985e5bdd0062f08',
                	name: 'menuitem49',
                	text: '模式',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '模式',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto41',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfomogrid-view',
                	authtag:'DynaWeb-IndexView-menuitem49',
                	localetag: 'app.menus.IndexView.menuitem49',
                }
                ,
                		        {
                	id: '9860345c46654263518e6ec2cc2ab477',
                	name: 'menuitem51',
                	text: '原因',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '原因',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto48',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfocagrid-view',
                	authtag:'DynaWeb-IndexView-menuitem51',
                	localetag: 'app.menus.IndexView.menuitem51',
                }
                ,
                		        {
                	id: 'd8c0914a4329002fcfdb1f14ec5af46f',
                	name: 'menuitem52',
                	text: '方案',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '方案',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto30',
                	appfunctype: 'APPVIEW',
                	viewname: 'emrfoacgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem52',
                	localetag: 'app.menus.IndexView.menuitem52',
                }
                ,
        	],
        }
        ,
                {
        	id: '4b5ca063c863d1245995416f7bf9dc0f',
        	name: 'menuitem30',
        	text: '资产',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '资产',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-navicon',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem30',
        	localetag: 'app.menus.IndexView.menuitem30',
        	items: [
                		        {
                	id: 'd57e22d65f02b9617cb455220b17a4da',
                	name: 'menuitem43',
                	text: '资产科目',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '资产科目',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto51',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetclassgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem43',
                	localetag: 'app.menus.IndexView.menuitem43',
                }
                ,
                		        {
                	id: 'af92eaec6fc90b5e78268394df28adef',
                	name: 'menuitem44',
                	text: '固定资产台账',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '固定资产台账',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto29',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetgrid-view',
                	authtag:'DynaWeb-IndexView-menuitem44',
                	localetag: 'app.menus.IndexView.menuitem44',
                }
                ,
                		        {
                	id: '74614bf276d779dfce1551ef25497a98',
                	name: 'menuitem45',
                	text: '报废资产',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '报废资产',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto46',
                	appfunctype: 'APPVIEW',
                	viewname: 'emassetgrid-view-bf',
                	authtag:'DynaWeb-IndexView-menuitem45',
                	localetag: 'app.menus.IndexView.menuitem45',
                }
                ,
                		        {
                	id: '922a73276d3545064eaaba188993b5af',
                	name: 'menuitem46',
                	text: '资产盘点记录',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '资产盘点记录',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto39',
                	appfunctype: 'APPVIEW',
                	viewname: 'emasset-clear-grid-view-5564',
                	authtag:'DynaWeb-IndexView-menuitem46',
                	localetag: 'app.menus.IndexView.menuitem46',
                }
                ,
        	],
        }
        ,
                {
        	id: '84c53f5d971a19ae8f13974a9289e196',
        	name: 'menuitem4',
        	text: '材料',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '材料',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-file-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem4',
        	localetag: 'app.menus.IndexView.menuitem4',
        	items: [
                		        {
                	id: 'ee89463e4646185c11a44cd37f215f8d',
                	name: 'menuitem2',
                	text: '物品类型',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '物品类型',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto22',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-type-info-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem2',
                	localetag: 'app.menus.IndexView.menuitem2',
                }
                ,
                		        {
                	id: '3de4f2b7a3a9cb6e771e9db393d6d173',
                	name: 'menuitem19',
                	text: '物品',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '物品',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto14',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-type-item-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem19',
                	localetag: 'app.menus.IndexView.menuitem19',
                }
                ,
                		        {
                	id: 'f9c649e99cf89eebaf1626084de1f574',
                	name: 'menuitem21',
                	text: '库存管理',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '库存管理',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto2',
                	appfunctype: 'APPVIEW',
                	viewname: 'emstore-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem21',
                	localetag: 'app.menus.IndexView.menuitem21',
                }
                ,
                		        {
                	id: '82e39aa8b49501c370ce911740b5229a',
                	name: 'menuitem24',
                	text: '损溢单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '损溢单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto18',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-pltab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem24',
                	localetag: 'app.menus.IndexView.menuitem24',
                }
                ,
                		        {
                	id: 'a052b0fec08c028ed9e32a0e9c79a84e',
                	name: 'menuitem25',
                	text: '调整单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '调整单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto4',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-cstab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem25',
                	localetag: 'app.menus.IndexView.menuitem25',
                }
                ,
                		        {
                	id: '0c9c86b54fef20aab81630a7a1a70406',
                	name: 'menuitem27',
                	text: '出库单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '出库单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto13',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-rout-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem27',
                	localetag: 'app.menus.IndexView.menuitem27',
                }
                ,
                		        {
                	id: '2c571cfb22a8129ff3468d4c18cf4732',
                	name: 'menuitem23',
                	text: '领料单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '领料单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto7',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-puse-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem23',
                	localetag: 'app.menus.IndexView.menuitem23',
                }
                ,
                		        {
                	id: 'a3ae9eb467554e0ebcbddd9f346d4a52',
                	name: 'menuitem28',
                	text: '还料单',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '还料单',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto8',
                	appfunctype: 'APPVIEW',
                	viewname: 'emitem-prtn-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem28',
                	localetag: 'app.menus.IndexView.menuitem28',
                }
                ,
        	],
        }
        ,
                {
        	id: 'cb19675fe2dc30c6879d7e8a2c79c1ca',
        	name: 'menuitem29',
        	text: '采购',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '采购',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-leanpub',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem29',
        	localetag: 'app.menus.IndexView.menuitem29',
        	items: [
                		        {
                	id: 'b7dcc7407a3eba740e5012a59b77722e',
                	name: 'menuitem64',
                	text: '采购流程',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '采购流程',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto54',
                	appfunctype: 'APPVIEW',
                	viewname: 'emwplist-wp-process-tree-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem64',
                	localetag: 'app.menus.IndexView.menuitem64',
                }
                ,
                		        {
                	id: '6f503c3d1d9289047a051662603b4f92',
                	name: 'menuitem38',
                	text: '服务商',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '服务商',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto36',
                	appfunctype: 'APPVIEW',
                	viewname: 'emservice-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem38',
                	localetag: 'app.menus.IndexView.menuitem38',
                }
                ,
                		        {
                	id: '0b99f1325a6d3aaf767e523253a64683',
                	name: 'menuitem39',
                	text: '服务商评估',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '服务商评估',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto34',
                	appfunctype: 'APPVIEW',
                	viewname: 'emservice-evl-tab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem39',
                	localetag: 'app.menus.IndexView.menuitem39',
                }
                ,
        	],
        }
        ,
                {
        	id: 'a824689bb7919218f0cb9d0fd8b6b054',
        	name: 'menuitem62',
        	text: '预警',
        	type: 'MENUITEM',
        	counterid: '',
        	tooltip: '预警',
        	expanded: true,
        	separator: false,
        	hidden: false,
        	hidesidebar: false,
        	opendefault: false,
        	iconcls: 'fa fa-bell-o',
        	icon: '',
        	textcls: '',
        	appfunctag: '',
        	authtag:'DynaWeb-IndexView-menuitem62',
        	localetag: 'app.menus.IndexView.menuitem62',
        	items: [
                		        {
                	id: '7bb7a29339a10653ec4f9496865d90f0',
                	name: 'menuitem63',
                	text: '钢丝绳位置超期预警',
                	type: 'MENUITEM',
                	counterid: '',
                	tooltip: '钢丝绳位置超期预警',
                	expanded: false,
                	separator: false,
                	hidden: false,
                	hidesidebar: false,
                	opendefault: false,
                	iconcls: '',
                	icon: '',
                	textcls: '',
                	appfunctag: 'Auto24',
                	appfunctype: 'APPVIEW',
                	viewname: 'emeqlctgsstab-exp-view',
                	authtag:'DynaWeb-IndexView-menuitem63',
                	localetag: 'app.menus.IndexView.menuitem63',
                }
                ,
        	],
        }
        ,
    ];

	/**
	 * 应用功能集合
	 *
	 * @private
	 * @type {any[]}
	 * @memberof IndexViewModel
	 */
	private funcs: any[] = [
	];

	/**
	 * 根据当前路由查找激活菜单
	 *
	 * @param {*} route
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findActiveMenuByRoute(route: any): any {
		if (route) {
			const func = this.funcs.find((item: any) => {
				if (item.openmode === '') {
					const url: string = ViewTool.buildUpRoutePath(route, route.params, [], item.parameters, [], {});
					return url === route.fullPath;
				}
			});
            if (func) {
			    return this.findMenuByFuncTag(func.appfunctag);
            }
		}
	}

	/**
	 * 根据应用功能id查找菜单项
	 *
	 * @param {string} tag
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findMenuByFuncTag(tag: string, menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.appfunctag === tag) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(tag, item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

	/**
	 * 查找默认打开菜单
	 *
	 * @param {any[]} [menus=this.items]
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public findDefaultOpenMenu(menus: any[] = this.items): any {
		let menu: any;
		menus.every((item: any) => {
			if (item.opendefault === true) {
				menu = item;
				return false;
			}
			if (item.items) {
				menu = this.findMenuByFuncTag(item.items);
				if (menu) {
					return false;
				}
			}
			return true;
		});
		return menu;
	}

    /**
     * 获取所有菜单项集合
     *
     * @returns {any[]}
     * @memberof IndexViewModel
     */
    public getAppMenuItems(): any[] {
        return this.items;
    }

	/**
	 * 根据名称获取菜单组
	 *
	 * @param {string} name
	 * @returns {*}
	 * @memberof IndexViewModel
	 */
	public getMenuGroup(name: string): any {
		return this.items.find((item: any) => Object.is(item.name, name));
	}

    /**
     * 获取所有应用功能集合
     *
     * @returns {any[]}
     * @memberof IndexViewModel
     */
    public getAppFuncs(): any[] {
        return this.funcs;
    }
}